/**
 * 
 */
package GUI;

import java.awt.*;

import javax.swing.*;

/**
 * @author aviat
 *
 */
public class handlingCustomer extends JPanel {
	
	private static final long serialVersionUID = 1L;
	
	private JButton btnBack;
	private JButton btnViewDetails;
	private JButton btnUpdateDetails;
	private JButton btnMeeting;
	private JButton btnRemoveCustomer;
	private JLabel iconlabel;
	
	public handlingCustomer() {
		setBackground(new Color(255, 51, 0));
		setLayout(null);
		btnBack = new JButton("Back");
		btnBack.setIcon(new ImageIcon(handlingCustomer.class.getResource("/resources/back22.png")));
		btnViewDetails = new JButton("View Details");
		btnViewDetails.setIcon(new ImageIcon(handlingCustomer.class.getResource("/resources/groups_folder.png")));
		btnUpdateDetails = new JButton("Update Details");
		btnUpdateDetails.setIcon(new ImageIcon(handlingCustomer.class.getResource("/resources/Apps-system-software-update-icon.png")));
		btnMeeting = new JButton("Meeting");
		btnMeeting.setIcon(new ImageIcon(handlingCustomer.class.getResource("/resources/alliance.png")));
		btnRemoveCustomer = new JButton("Remove Customer");
		btnRemoveCustomer.setIcon(new ImageIcon(handlingCustomer.class.getResource("/resources/delete.png")));
		
		initialize();
	}

	private void initialize() {

		btnRemoveCustomer.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnUpdateDetails.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnMeeting.setFont(new Font("Tahoma", Font.BOLD, 12));
		btnViewDetails.setFont(new Font("Tahoma", Font.BOLD, 12));
		
		JLabel lblCustomer = new JLabel("Customers");
		lblCustomer.setForeground(new Color(0, 204, 255));
		lblCustomer.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblCustomer.setBounds(10, 11, 164, 44);
		add(lblCustomer);
		
		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 101, 27);
		add(btnBack);
	
		btnViewDetails.setBounds(172, 157, 181, 44);
		add(btnViewDetails);
		
		btnUpdateDetails.setBounds(172, 252, 181, 44);
		add(btnUpdateDetails);
		
		btnMeeting.setBounds(414, 157, 181, 44);
		add(btnMeeting);
		
		btnRemoveCustomer.setBounds(414, 252, 181, 44);
		add(btnRemoveCustomer);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
	}

	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}

	/**
	 * @param btnBack the btnBack to set
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	/**
	 * @return the btnViewDetails
	 */
	public JButton getBtnViewDetails() {
		return btnViewDetails;
	}

	/**
	 * @param btnViewDetails the btnViewDetails to set
	 */
	public void setBtnViewDetails(JButton btnViewDetails) {
		this.btnViewDetails = btnViewDetails;
	}

	/**
	 * @return the btnUpdateDetails
	 */
	public JButton getBtnUpdateDetails() {
		return btnUpdateDetails;
	}

	/**
	 * @param btnUpdateDetails the btnUpdateDetails to set
	 */
	public void setBtnUpdateDetails(JButton btnUpdateDetails) {
		this.btnUpdateDetails = btnUpdateDetails;
	}

	/**
	 * @return the btnCoordinatingMeeting
	 */
	public JButton getBtnMeeting() {
		return btnMeeting;
	}
	
	/**
	 * @return the btnRemoveCustomer
	 */
	public JButton getBtnRemoveCustomer() {
		return btnRemoveCustomer;
	}

	/**
	 * @param btnRemoveCustomer the btnRemoveCustomer to set
	 */
	public void setBtnRemoveCustomer(JButton btnRemoveCustomer) {
		this.btnRemoveCustomer = btnRemoveCustomer;
	}


}
